package com.yao2san.simdif.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yao2san.simdif.bean.BaseBean;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("history")
@Accessors(chain = true)
public class History extends BaseBean {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long ds1Id;
    private Long ds2Id;
    private Boolean isDiff;
    private Integer diffCount;
    private String diffSummary;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime compareTime;
}
